Skip to content

Conversation

@Wumpf
Copy link
Member

@Wumpf Wumpf commented Dec 2, 2025

Related

What

The difference between those two is whether each test gets its own process. So it was clear that we're leaking state. Turns out it's about store subscribers which often rely on unique store ids for distinguishing concrete stores.

Solving this on the store subscriber level with the current arch is hard because the subscriber correctly accumulate data from all parallel running tests that do writes do stores with the exact same id

The difference between those two is whether each test gets its own process. So it was clear that we're leaking state. Turns out it's about store subscribers which often rely on unique store ids for distinguishing concrete stores.
@Wumpf Wumpf added the 🔨 testing testing and benchmarks label Dec 2, 2025
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Web viewer built successfully.

Result Commit Link Manifest
a7f7451 https://rerun.io/viewer/pr/12061 +nightly +main

View image diff on kitdiff.

Note: This comment is updated whenever you push a commit.

Copy link
Member

@grtlr grtlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my, that looks hard to find!

Is there a rule of thumb when to use StoreInfo::testing and when to set the recording id explicitly?


/// Creates a new store info for testing purposes with a fixed store id.
///
/// Most of the time we don't want to fix the store id since it is used as a key in static store subscribers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Most of the time we don't want to fix the store id since it is used as a key in static store subscribers.
/// Most of the time we don't want to fix the store id since it is used as a key in static store subscribers, which might not get teared down after every test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 testing testing and benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unit test of re_view_spatial fail at main branch (commit: f101cbd)

3 participants